package com.tensquare.user.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Macross
 * @Type User.java
 * @Desc 用户信息类
 * @date 2019/12/23 12:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_user")
@Entity
@ApiModel(description = "用户信息类")
public class User implements Serializable {

    @Id
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "出生年月")
    private Date birthday;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "E-Mail")
    private String email;

    @Column(name = "regdate")
    @ApiModelProperty(value = "注册日期")
    private Date regDate;

    @Column(name = "updatedate")
    @ApiModelProperty(value = "修改日期")
    private Date updateDate;

    @Column(name = "lastdate")
    @ApiModelProperty(value = "最后登录")
    private Date lastDate;

    @ApiModelProperty(value = "在线时长")
    private Long online;

    @ApiModelProperty(value = "兴趣")
    private String interest;

    @ApiModelProperty(value = "个性")
    private String personality;

    @Column(name = "fanscount")
    @ApiModelProperty(value = "粉丝数")
    private Integer fansCount;

    @Column(name = "followcount")
    @ApiModelProperty(value = "关注数")
    private Integer followCount;
}
